﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>网站后台管理平台</title>
    <script src="/Scripts/site/bgmgr/webadmin/index.js" type="text/javascript"></script>
    <style type="text/css">
        .flatmenu
        {
            background:White !important;
        }
    </style>
</head>
<body>
    <ext:ResourceManager runat="server" />
    <ext:Viewport runat="server" Layout="fit">
        <Items>
            <ext:BorderLayout runat="server">
                <North Split="true">
                    <ext:Panel runat="server" Height="35" Padding="6">
                        <Items>
                            <ext:ColumnLayout runat="server" Split="true">
                                <Columns>
                                    <ext:LayoutColumn ColumnWidth="0.5">
                                        <ext:Panel runat="server" Border="false">
                                            <Content>
                                                <div>当前登录用户：<%: Session["bgadmin"] %></div>
                                            </Content>
                                        </ext:Panel>
                                    </ext:LayoutColumn>
                                    <ext:LayoutColumn ColumnWidth="0.5">
                                        <ext:Panel runat="server" Border="false">
                                            <Content>
                                                <div style="text-align:right">
                                                    <a href="/bgmgr/webadmin/logout">退出</a>
                                                </div>
                                            </Content>
                                        </ext:Panel>
                                    </ext:LayoutColumn>
                                </Columns>
                            </ext:ColumnLayout>
                        </Items>
                    </ext:Panel>
                </North>
                <West Collapsible="true" MinWidth="175" Split="true">
                    <ext:Panel runat="server" ID="NavMenuPanel" Layout="AccordionLayout" Width="175" Title="导航菜单">
                        <Items>
                            <ext:Panel runat="server" Title="会员数据管理">
                                <Items>
                                    <ext:MenuPanel ID="MenuPanel1" runat="server" Icon="ArrowSwitch" Border="false">
                                        <Menu ID="Menu1" runat="server" Cls="flatmenu">
                                            <Items>
                                                <ext:MenuItem runat="server" Text="网站会员管理" Icon="BulletBlue" Href="/bgmgr/membersmgr/" />
                                                <ext:MenuItem runat="server" Text="会员等级配置" Icon="BulletBlue" Href="/bgmgr/levelconfig/" />
                                                <ext:MenuItem runat="server" Text="会员徽章配置" Icon="BulletBlue" Href="/bgmgr/badgeconfig/" />
                                            </Items>
                                            <Listeners>
                                                <ItemClick Fn="mitemClick" />
                                            </Listeners>
                                        </Menu>                                    
                                    </ext:MenuPanel>
                                </Items>
                            </ext:Panel>
                            <ext:Panel runat="server" Title="网站应用管理">
                            </ext:Panel>
                            <ext:Panel runat="server" Title="网站后台管理">
                                <Items>
                                    <ext:MenuPanel runat="server" Icon="ArrowSwitch" Border="false">
                                        <Menu runat="server" Cls="flatmenu">
                                            <Items>
                                                <ext:MenuItem runat="server" Text="后台管理员" Icon="BulletBlue" Href="/bgmgr/webadmin/alladmins" />
                                                <ext:MenuItem runat="server" Text="修改管理员密码" Icon="BulletBlue" Href="/bgmgr/webadmin/changepsw" />
                                            </Items>
                                            <Listeners>
                                                <ItemClick Fn="mitemClick" />
                                            </Listeners>
                                        </Menu>                                    
                                    </ext:MenuPanel>
                                </Items>
                            </ext:Panel>
                        </Items>
                    </ext:Panel>
                </West>
                <Center>
                    <ext:Panel runat="server" ID="ContentPanel" Title="网站会员管理">
                        <AutoLoad Url="/bgmgr/membersmgr" Mode="IFrame" ShowMask="true" NoCache="true" />
                    </ext:Panel>
                </Center>
            </ext:BorderLayout>
        </Items>
    </ext:Viewport>
</body>
</html>
